package com.zm.duotai;

public class Technician extends Person{
    private int workTime;
    private int monSal;
    private int no;

    public Technician() {
    }
// 兼职技术人员按每小时100元领取月薪；
    public Technician(String name, int age, char genger, long sid, int length, int weight,int workTime) {
        super(name,age,genger,sid,length,weight);
        this.workTime = workTime;
        this.monSal=this.workTime*100;
        Person.setNo(Person.getNo()+1);
        this.no=Person.getNo();
    }
    @Override
    public String toString() {
        return "Person{" +
                "name='" + super.getName() + '\'' +
                ", age=" + super.getAge() +
                ", genger=" + super.getGenger() +
                ", no=" + this.no +
                ", sid=" + super.getSid() +
                ", length=" + super.getLength() +
                ", weight=" + super.getWeight() +
                ", monSal=" +this.monSal +
                '}';
    }
}
